package com.fortune.enums;

public enum  ProductEnum {
    SUCCESS(true,"成功"),
    PRODUCE_EXIST(false,"商品已存在"),
    PRODUCE_NAME_EXIST(false,"商品名称已存在"),
    PRODUCE_NUMBER_EXIST(false,"商品编号已存在"),
    PRODUCE_STOCK_EXIST(false,"商品有库存,不能删除"),
    PRODUCE_NO_EXIST(false,"商品不存在"),
    UP(false,"商品已上架,不能重复操作"),
    DOWN(false,"商品已下架,不能重复操作"),
    FAILURE(false,"操作失败,请重新操作");
    private boolean status;
    private String msg;
    ProductEnum(boolean status,String msg){
        this.status = status;
        this.msg = msg;
    }
    public boolean isStatus() {
        return status;
    }
    public void setStatus(boolean status) {
        this.status = status;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
